//package com.example.publishDemo.Controller.SystemMessage;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class SystemMessageConfig {
//
//    @Bean("systemTopicExchange")
//    public TopicExchange systemTopic() {
//        return new TopicExchange("systemTopicExchange");
//    }
//
//    @Bean("systemTopicQueue")
//    public Queue systemMessage() {
//        return new Queue("systemTopicQueue");
//    }
//
//    @Bean("systemTopicBinding")
//    public Binding systemBinding(@Qualifier("systemTopicExchange") TopicExchange systemTopic, @Qualifier("systemTopicQueue") Queue systemMessage) {
//        return BindingBuilder.bind(systemMessage).to(systemTopic).with("*.system.*");
//    }
//}
